package com.zpark.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

/**
 * Spring配置类，作用配置bean
 */
@Configuration
public class SpringConfig {

    @Bean
    public Date date(){
        return new Date();
    }
}
